package com.lww.springcloudapi.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.lww.springcloudapi.entity.TabCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 数据字典
 * </p>
 *
 * @author SHEN
 * @since 2021-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false) //比较HashCode值
@NoArgsConstructor //无参构造
@AllArgsConstructor //有参构造
@Accessors(chain = true) //链式编程
@ApiModel(value = "TabCode对象", description = "数据字典VO")
public class TabCodeVO {

    @ApiModelProperty(value = "编码")
//    @TableField(value = "code")
    private Integer code;

    @ApiModelProperty(value = "编码类型")
//    @TableField("codeType")
    private String codeType;

    @ApiModelProperty(value = "字典名字")
//    @TableField(value = "codeName")
    private String codeName;

    @ApiModelProperty(value = "字典名字")
//    @TableField(value = "parent")
    private String parent;

    @ApiModelProperty(value = "编码类型")
//    @TableField("value")
    private String value;

    @ApiModelProperty(value = "表示父級菜單")
//    @TableField(exist = false)
    private List<TabCode> tabCode;
}
